import axios from "axios";

const getProjectPercentage = async (projectId:number)=>{
    let url = "/api/project";
    return new Promise(((resolve, reject) => {
        url += "/getProjectPercentage";
        axios.get(url, {
            params: {
                projectId
            }
        }).then(function (response) {
            resolve(response.data);

        });
    }))

}

export default getProjectPercentage;